return {
  {
    "sontungexpt/better-diagnostic-virtual-text",
    event = "LspAttach",
    config = function()
      require("better-diagnostic-virtual-text").setup({
        ui = {
          wrap_line_after = false, -- wrap the line after this length to avoid the virtual text is too long
          left_kept_space = 3, --- the number of spaces kept on the left side of the virtual text, make sure it enough to custom for each line
          right_kept_space = 3, --- the number of spaces kept on the right side of the virtual text, make sure it enough to custom for each line
          arrow = "  ",
          up_arrow = "  ",
          down_arrow = "  ",
          above = false, -- the virtual text will be displayed above the line
        },
        priority = 2003, -- the priority of virtual text
        inline = true,
      })
    end,
  },
  {
    "neovim/nvim-lspconfig",
    opts = {
      diagnostics = {
        virtual_text = false,
      },
    },
  },
}
